<?php

Yii::import('application.models._base.BaseCustomerMessage');


class CustomerMessage extends BaseCustomerMessage
{
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
	public function search_my(){
		$criteria = new CDbCriteria;
		$criteria->addCondition('customer_id='.yii::app()->user->id);
		$criteria->addCondition('enable=1');
		return  $a=new CActiveDataProvider($this, array(
				'criteria' => $criteria,
				'pagination'=>array(
						'pageSize'=>10, //当前页数显示记录条数
				),
	
		));
	}	
}